import Vue from 'vue'
import VueRouter from 'vue-router'

// 页面
import Classification from '../views/Classification'
import Home from '../views/Home'
import My from '../views/My'
import Order from '../views/Order'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/classification',
    component: Classification
  },
  {
    path: '/order',
    component: Order
  },
  {
    path: '/my',
    component: My
  }
]

const router = new VueRouter({
  routes
})

export default router